package cn.mes.module.mes.controller.admin.basemachineinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.mes.framework.excel.core.annotations.DictFormat;
import cn.mes.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 机台负责人员信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BaseMachinePeopleInfoRespVO {

    @Schema(description = "机台人员信息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23154")
    @ExcelProperty("机台人员信息ID")
    private String id;

    @Schema(description = "车间ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3321")
    @ExcelProperty("车间ID")
    private String workShopId;

    @Schema(description = "生产班别", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("生产班别")
    private String shiftCode;

    @Schema(description = "职位编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "职位编码", converter = DictConvert.class)
    @DictFormat("mes_machine_position") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String positionCode;

    @Schema(description = "职位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("职位名称")
    private String positionName;

    @Schema(description = "人员名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("人员名称")
    private String worker;

    @Schema(description = "人员工号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("人员工号")
    private String workerJobNo;

    @Schema(description = "机台信息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10002")
    @ExcelProperty("机台信息ID")
    private String machineId;

    @Schema(description = "区域ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10002")
    @ExcelProperty("区域ID")
    private String machineAreaId;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String note;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}